package com.hksj.cm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.cm.entity.CleanlinessLevel;
import com.hksj.cm.entity.DeviceLevelSetting;
import com.hksj.cm.vo.DeviceLevelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName DeviceLevelMapper
 * @Description TODO
 * @Author @陈章
 * @Date 2024/7/22 11:38
 * @Version 1.0
 */
@Mapper
public interface DeviceLevelMapper extends BaseMapper<DeviceLevelSetting> {
    //List<DeviceLevelVO> queryDeviceLevelSettingList(@RequestParam("page") Page<DeviceLevelVO> page, @RequestParam("constructionStandardsId") String constructionStandardsId);

    //根据value值查询出每个建造级别下的个数
    int selectCountByValue(String value);

    List<DeviceLevelVO> queryUnboundDeviceList(@Param("page") Page<DeviceLevelVO> page, @Param("deviceName") String deviceName, @Param("constructionStandardsValue") String constructionStandardsValue);

    List<DeviceLevelVO> queryAlreadyBoundDeviceList(@Param("page") Page<DeviceLevelVO> page, @Param("constructionStandardsValue") String constructionStandardsValue);
}
